


import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:xim/common/get_style_view.dart';
import 'package:xim/config/route_config.dart';
import 'package:xim/screen/login_screen/login_guide_page/login_guide_page_controller.dart';
import 'package:xim/screen/login_screen/login_guide_page/login_guide_page_style.dart';
import 'package:xim/widget/common/state.dart';

class LoginGuidePage extends GetStyleControllerView<void, LoginGuidePageController, LoginGuidePageStyle> {
  LoginGuidePage({super.key});

  @override
  Widget buildView(BuildContext context, void data) {
    return Scaffold(
      appBar: style.appBar,
      body: Column(
        crossAxisAlignment: CrossAxisAlignment.center,
        mainAxisAlignment: MainAxisAlignment.start,
        children: [
          const SizedBox(height: 20,),
          const Center(
            child: Text("登录注册", style: TextStyle(fontSize: 18, fontWeight: FontWeight.w600),),
          ),
          const SizedBox(height: 20,),
          const Center(
            child: Text("通过私钥登录或创建新账号", style: TextStyle(fontSize: 14),),
          ),
          Expanded(child: Container()),
          GestureDetector(
            onTap: ()=>Routers.toAccountLoginPage(),
            child: style.privateLoginBtn
          ),
          const SizedBox(height: 20,),
          GestureDetector(
            onTap: ()=>Routers.toRegisterPage(),
            child: style.createAccountBtn,
          ),
          const SizedBox(height: 40,)
        ],
      ),
    );
  }
}
